//
//  ExercisesAnswerCardHeaderView.m
//  ShowYork
//
//  Created by hxh on 2020/9/10.
//  Copyright © 2020 hxh. All rights reserved.
//

#import "ExercisesAnswerCardHeaderView.h"

@interface ExercisesAnswerCardHeaderView ()
@property (nonatomic,strong)UILabel *titleLb;
@end

@implementation ExercisesAnswerCardHeaderView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setUI];
    }
    return self;
}

- (void)setUI{
    self.titleLb = [[UILabel alloc]init];
    self.titleLb.textColor = RGBA(35, 24, 2, 1);
    self.titleLb.font = [UIFont boldSystemFontOfSize:16];
    [self addSubview:self.titleLb];
    [self.titleLb mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self).offset(10);
        make.left.equalTo(self).offset(16);
    }];
}
- (void)setCardHeadTitle:(NSString *)title{
    self.titleLb.text = title;
}
@end
